<template>
  <el-card class="box-card">
    <template #header>
      <div class="card-header">
        <div class="header-warp">
          <div class="warp">
            <img src="@/assets/images/home/guide/wrap.png" />
          </div>
          <div class="header-word">工作指引</div>
        </div>
      </div>
    </template>
    <div class="content-director">
      <div class="director-head">
        <div class="director-round">
          <img src="@/assets/images/home/guide/elliptic.png" />
        </div>
        <div class="director-word">审计负责人</div>
      </div>
      <div class="director-data">
        <el-row :gutter="10">
          <el-col :span="6" v-for="(item, index) in auditItems" :key="index">
            <div class="examine-approve">
              <div class="examine-approve-card">
                <div class="examine-approve-round">
                  <img :src="blueCircle" />
                </div>
                <div class="examine-approve-word">{{ item.title }}</div>
              </div>
              <div class="step">{{ item.step }}</div>
            </div>
          </el-col>
        </el-row>
      </div>
    </div>
    <div class="content-group-leader">
      <div class="group-leader-head">
        <div class="group-leader-round">
          <img src="@/assets/images/home/guide/elliptic.png" />
        </div>
        <div class="group-leader-word">组长</div>
      </div>
      <div class="group-leader-data">
        <el-row :gutter="10">
          <el-col :span="6" v-for="(item, index) in groupItems" :key="index">
            <div class="examine-approve">
              <div class="examine-approve-card">
                <div class="examine-approve-round">
                  <img :src="blueCircle" />
                </div>
                <div class="examine-approve-word">{{ item.title }}</div>
              </div>
              <div class="step">{{ item.step }}</div>
            </div>
          </el-col>
        </el-row>
      </div>
    </div>
  </el-card>
</template>

<script>
import blueCircle from '@/assets/images/home/guide/blue-circle.png';
export default {
  name: 'guide-card',
  data() {
    return {
      blueCircle,
      auditItems: [
        {
          title: '计划需求审批',
          step: '步骤1',
        },
        {
          title: '年底计划审批',
          step: '步骤2',
        },
        {
          title: '计划变更审批',
          step: '步骤3',
        },
        {
          title: '计划变更审批',
          step: '步骤3',
        },
      ],
      groupItems: [
        {
          title: '项目一览',
          step: '步骤1',
        },
        {
          title: '审计阶段',
          step: '步骤2',
        },
        {
          title: '现场实施',
          step: '步骤3',
        },
        {
          title: '审计报告',
          step: '步骤4',
        },
        {
          title: '步骤环节5',
          step: '步骤5',
        },
        {
          title: '步骤环节6',
          step: '步骤6',
        },
      ],
    };
  },
  methods: {
    handleChange(val) {
      window.console.log(val);
    },
  },
};
</script>

<style scoped lang="scss">
.card-header {
  display: flex;
  background-color: #ffffff;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f2f2f2;
  height: 47px;
  padding-left: 21px;
}

:deep(.el-card__header) {
  padding: 0;
  background-color: #ffffff !important;
}
.header-warp {
  display: flex;
  .warp {
    margin-right: 7px;
    width: 16px;
    height: 16px;
    padding-top: 2px;
  }
  .header-word {
    font-weight: 700;
  }
}
.content-director {
  padding: 20px;
  .director-head {
    margin-bottom: 11px;
    display: flex;
    .director-round {
      width: 12px;
      height: 12px;
      margin-right: 10px;
    }
    .director-word {
      font-size: 14px;
      font-weight: 700;
    }
  }
}
.content-group-leader {
  padding: 0 20px;
  .group-leader-head {
    display: flex;
    margin-bottom: 11px;
    .group-leader-round {
      width: 12px;
      height: 12px;
      margin-right: 10px;
    }
    .group-leader-word {
      font-size: 14px;
      font-weight: 700;
    }
  }
}
.examine-approve {
  width: 122px;
  height: 60px;
  background: #f9fafb;
  border-radius: 2px;
  .examine-approve-card {
    display: flex;
    padding-top: 15px;
    .examine-approve-round {
      width: 15px;
      height: 15px;
      margin-right: 3px;
      padding: 3px 0 0 6px;
    }
    .examine-approve-word {
      font-size: 12px;
      font-weight: 700;
    }
  }
  .step {
    font-size: 12px;
    margin: 3px 0 0 24px;
    color: #9da2a8;
  }
}
</style>
